package routers

import (
	"book1/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/list", &controllers.BookController{}, "get:List")
	beego.Router("/add", &controllers.BookController{}, "post:Add")
	beego.Router("/up", &controllers.BookController{}, "post:up")
	beego.Router("/del", &controllers.BookController{}, "post:Del")
}
